package http_log

import (
	"easy_http/http_server"
	"log"
)
// LogMiddleware 请求日志中间件
func LogMiddleware() func(ctx *http_server.Context) {
	return func(ctx *http_server.Context) {
		log.Printf("method: %s - path: %s\n", ctx.R.Method, ctx.R.URL.Path)
	}
}
